<?php 
/**
 * 用户控制器
 */
class UserControl extends CommonControl{
	/**
	 * [index 用户列表]
	 * @return [type] [description]
	 */
	public function index(){
		if(!empty($_GET['user'])&&!empty($_GET['uid'])){
			if($_GET['user']=='lock')$data=array('`lock`'=>1);
			if($_GET['user']=='unlock')$data=array('`lock`'=>0);
			M('user')->where('uid='.$_GET['uid'])->update($data);
		}
		$user=M('user')->all();
		if(!is_null($user))$this->assign('user',$user);
		
		$this->display();
	}

}
 ?>